import request from '@/utils/request'

export class MaterialsService {

// 查询鉴定材料列表
  static listMaterials(query) {
    return request({
      url: '/api/sources/materials/list',
      method: 'get',
      params: query
    })
  }

// 查询鉴定材料详细
  static getMaterials(materialsId) {
    return request({
      url: '/api/sources/materials/' + materialsId,
      method: 'get'
    })
  }

// 新增鉴定材料
  static addMaterials(data) {
    return request({
      url: '/api/sources/materials',
      method: 'post',
      data: data
    })
  }

// 修改鉴定材料
  static updateMaterials(data) {
    return request({
      url: '/api/sources/materials',
      method: 'put',
      data: data
    })
  }

// 删除鉴定材料
  static delMaterials(materialsId) {
    return request({
      url: '/api/sources/materials/' + materialsId,
      method: 'delete'
    })
  }

}
